package test;

import java.util.Scanner;

public class ee {
	public static void test2(int n){
        int money[]={1,2,5,10};
        int dp[] = new int[n+1];
        dp[0] = 1;
        for(int i = 0;i < money.length;++i){
            for(int j = money[i];j <= n;++j){
                dp[j] =(dp[j]+dp[j-money[i]]);
            }
        }
        System.out.println(dp[n]);
    }
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        test2(n);
    }
}
